.echarts-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.echarts-panel--legend-right {
  flex-direction: row;
}

.echarts-panel--legend-right .echarts-legend {
  flex: 0 1 10px;
  height: 100%;
}

_:-ms-fullscreen, :root .echarts-panel--legend-right .echarts-legend {
  flex: 0 1 200px;
}

.echarts-panel--legend-right .echarts-legend-series {
  display: block;
  padding-left: 0px;
}

.echarts-panel--legend-right .echarts-legend-table .echarts-legend-series {
  display: table-row;
}

.echarts-legend__container {
  height: 100%;
}

.echarts-panel__chart {
  position: relative;
  cursor: crosshair;
  flex-grow: 1;
  top: 10px;
}

.datapoints-warning {
  pointer: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  margin-top: -50px;
  margin-left: -100px;
  width: 200px;
  text-align: center;
  cursor: auto;
  padding: 10px;
}

.echarts-legend {
  flex: 0 1 auto;
  margin: 0 1rem;
  text-align: center;
  padding-top: 6px;
  position: relative;
}

.echarts-legend .popover-content {
  padding: 0;
}

.echarts-legend-icon {
  position: relative;
  padding-right: 4px;
  top: 1px;
}

.echarts-legend-icon,
.echarts-legend-alias,
.echarts-legend-value {
  cursor: pointer;
  float: left;
  white-space: nowrap;
  font-size: 85%;
  text-align: left;
  color: 52545c;
}

.echarts-legend-icon.current::before {
  content: "Current: ";
}

.echarts-legend-icon.max::before {
  content: "Max: ";
}

.echarts-legend-icon.min::before {
  content: "Min: ";
}

.echarts-legend-icon.total::before {
  content: "Total: ";
}

.echarts-legend-icon.avg::before {
  content: "Avg: ";
}

.echarts-legend-alias.current::before {
  content: "Current: ";
}

.echarts-legend-alias.max::before {
  content: "Max: ";
}

.echarts-legend-alias.min::before {
  content: "Min: ";
}

.echarts-legend-alias.total::before {
  content: "Total: ";
}

.echarts-legend-alias.avg::before {
  content: "Avg: ";
}

.echarts-legend-value.current::before {
  content: "Current: ";
}

.echarts-legend-value.max::before {
  content: "Max: ";
}

.echarts-legend-value.min::before {
  content: "Min: ";
}

.echarts-legend-value.total::before {
  content: "Total: ";
}

.echarts-legend-value.avg::before {
  content: "Avg: ";
}

.echarts-legend-icon .fa {
  font-size: 135%;
  position: relative;
  top: 1px;
}

.echarts-legend-series {
  float: left;
  white-space: nowrap;
  padding-left: 10px;
}

.echarts-legend-series--right-y {
  float: right;
}

.echarts-legend-value {
  padding-left: 6px;
}

.echarts-legend-table tbody {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding-bottom: 1px;
  padding-right: 5px;
}

.echarts-legend-table .echarts-legend-series {
  display: table-row;
  float: none;
  padding-left: 0;
}

.echarts-legend-table .echarts-legend-series--right-y {
  float: none;
}

.echarts-legend-table .echarts-legend-series--right-y .echarts-legend-alias::after {
  content: "(right-y)";
  padding: 0 5px;
  color: #767980;
}

.echarts-legend-table td,
.echarts-legend-alias,
.echarts-legend-icon,
.echarts-legend-value {
  float: none;
  display: table-cell;
  white-space: nowrap;
  padding: 2px 10px;
  text-align: right;
}

.echarts-legend-table .echarts-legend-icon {
  width: 5px;
  padding: 0;
  top: 0;
}

.echarts-legend-table .echarts-legend-icon .fa {
  top: 4px;
}

.echarts-legend-table .echarts-legend-value {
  padding-left: 15px;
}

.echarts-legend-table .echarts-legend-alias {
  padding-left: 7px;
  text-align: left;
  width: 95%;
  max-width: 650px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.echarts-legend-table .echarts-legend-series:nth-child(odd) {
  background: #dde4ed;
}

.echarts-legend-table .echarts-legend-value.current::before {
  content: "";
}

.echarts-legend-table .echarts-legend-value.max::before {
  content: "";
}

.echarts-legend-table .echarts-legend-value.min::before {
  content: "";
}

.echarts-legend-table .echarts-legend-value.total::before {
  content: "";
}

.echarts-legend-table .echarts-legend-value.avg::before {
  content: "";
}

.echarts-legend-table th {
  text-align: right;
  padding: 0px 10px 1px 0;
  font-weight: bold;
  color: #61c2f2;
  font-size: 85%;
  white-space: nowrap;
}

.echarts-legend-series-hidden .echarts-legend-value,
.echarts-legend-series-hidden .echarts-legend-alias {
  color: #acb6bf;
}

.echarts-tooltip {
  white-space: nowrap;
  font-size: 12px;
  background-color: #dde4ed;
  color: #35373f;
}

.echarts-tooltip .echarts-tooltip-time {
  text-align: center;
  position: relative;
  top: -3px;
  padding: 0.2rem;
  font-weight: bold;
  color: #35373f;
}

.echarts-tooltip .echarts-tooltip-value {
  display: table-cell;
  font-weight: bold;
  padding-left: 15px;
  text-align: right;
}
